﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace XLDL
{
    public partial class CTAdm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["user"].ToString() == "")
                {
                    Response.Redirect("Adm.aspx");
                }
                lbl_user.Text = Session["user"].ToString().Trim();
            }
        }

        protected void LinkButton_nhomsp_Click(object sender, EventArgs e)
        {
            Response.Redirect("CTadm.aspx?act=Nhomsp");
        }

        protected void LinkButton_Banner_Click(object sender, EventArgs e)
        {
            Response.Redirect("CTadm.aspx?act=Banner");
        }

        protected void LinkButton_sp_Click(object sender, EventArgs e)
        {
            Response.Redirect("CTadm.aspx?act=Sanpham");
        }

        protected void link_logout_Click(object sender, EventArgs e)
        {
            Session["user"] = "";
            Response.Redirect("Adm.aspx");
        }

        protected void LinkButton_themthongtin_Click(object sender, EventArgs e)
        {
            Response.Redirect("CTadm.aspx?act=Them_TT");
        }
    }
}
